package com.yyg.usecase.springbootwebdemo.service.starter_demo;

import com.yyg.usecase.VipService;
import org.springframework.stereotype.Component;

@Component
public class VipServiceWrap {

    private VipService vipService;

    public VipServiceWrap(VipService vipService) {
        this.vipService = vipService;
    }

    public String getVipDesc(String userId) {
        return vipService.isVip(userId) ? "vip" : "not vip";
    }


}
